package org.neuedu.his.controller;

import org.neuedu.his.model.Menu;
import org.neuedu.his.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sys/config")

public class SysMenuController {
    @Autowired
    MenuService menuService;
    @GetMapping("/menu")
    public List<Menu> getMenus(){
        return menuService.getMenusById();

    }

}
